package com.asia5b.a5mall.middleware.api

import io.reactivex.Observable
import okhttp3.ResponseBody
import retrofit2.http.GET
import retrofit2.http.Path
import retrofit2.http.Query

/**
 * Created by zhangyuncai on 2019/12/21.
 */
interface PaymentApi {
    /** ============================== 订单支付API  =============================== */


    /**
     * @Note   对一个交易发起支付
     * @param   paymentPluginId    支付插件id
     * @param   payMode    支付模式，正常normal， 二维码 ar,枚举类型PaymentPatternEnum
     * @param   clientType    调用客户端PC,WAP,NATIVE,REACT
     * @param   sn    要支付的交易sn
     * @param   tradeType    交易类型
     */
    @GET("order/pay/app/{trade_type}/{sn}")
    fun payTrade(
            @Path("sn") sn :String,
            @Path("trade_type") tradeType :String,
            @Query("payment_plugin_id") paymentPluginId :String,
            @Query("pay_mode") payMode :String,
            @Query("client_type") clientType :String
    ):Observable<ResponseBody>



    /** ============================== 订单支付API  =============================== */

}